package com.loopj.ohos.http.sample;

/**
 * CancelAllRequestsSample
 */
public class CancelAllRequestsSample extends ThreadingTimeoutSample {

    @Override
    public int getSampleTitle() {
        return ResourceTable.String_title_cancel_all;
    }

    @Override
    public void onCancelButtonPressed() {
        getAsyncHttpClient().cancelAllRequests(true);
    }
}